package com.ssm.serviceimp;

import com.ssm.dao.IAdminDao;
import com.ssm.model.Admin;
import com.ssm.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adminService")
public class AdminServiceImp implements AdminService {
    @Autowired
    private IAdminDao adminDao;
    @Override
    public Admin selectAdminByUsername(String username, String password) {
        return adminDao.selectAdminByUsername(username, password);
    }
}
